package com.itheima.pojo;

import java.util.List;

public class PageBean<T> {
    //要返回的总条目数
    private int totalCount;

    //要返回的当前页面数据
    private List<T> currentRows;

    public PageBean() {
    }

    public PageBean(int totalCount, List<T> currentRows) {
        this.totalCount = totalCount;
        this.currentRows = currentRows;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getCurrentRows() {
        return currentRows;
    }

    public void setCurrentRows(List<T> currentRows) {
        this.currentRows = currentRows;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "totalCount=" + totalCount +
                ", currentRows=" + currentRows +
                '}';
    }

}
